package com.cy;


import java.util.HashMap;
import java.util.Map;

public class testGC {
    public static void main(String[] args) {
        Map<String,Object> beanPool=new HashMap<>();

        Point   p1=new Point();
        beanPool.put("Point01",p1);
        p1=null;
        beanPool.remove("Point01");
        System.gc();
    }

}
class  Point{

    public void  finalize(){
        System.out.println("finalize()....");
    }


}
